<template>
	<view class="page">
		<u-navbar :title="title" autoBack fixed placeholder titleStyle="color: #232832;" bgColor="#FFFFFF"
			leftIconColor="#232832"></u-navbar>
		<c-content :top="statusBarHeight + 44" :bottom="safeAreaBottom">
			<view class="cell" v-for="i in 10" :key="i">
				<view class="cell-header">
					<view class="cell-header__avatar">
						<u-avatar src="/static/1.png" :size="40"></u-avatar>
					</view>
					<view class="cell-header__content">
						<view class="cell-header__content-title">巴顿斯</view>
						<view class="cell-header__content-label">
							<text class="time">7分钟前</text>
							<text class="type">赞了你的评论</text>
						</view>
					</view>
					<view class="cell-header__value">
						<image class="cell-header__value-img" src="/static/1.png" mode="aspectFill"></image>
					</view>
				</view>
				<view class="cell-content" v-if="type != '1'">
					这张照片看起来不错这张照片看起来不错这张照片看起来不错
				</view>
			</view>
		</c-content>
	</view>
</template>

<script>
	import mixins from '@/mixins/index.js'
	export default {
		mixins: [mixins],
		data() {
			return {
				title: '',
				tip: '',
				type: '0'
			}
		},
		onLoad(options) {
			this.type = options.type
			if (options.type == '0') {
				this.title = '获赞'
			} else if (options.type == '1') {
				this.title = '粉丝'
			} else if (options.type == '2') {
				this.title = '评论'
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.cell {
		margin: 15px 22px 20px;

		.cell-header {
			display: flex;
			align-items: center;

			&__content {
				flex: 1;
				margin: 0 10px;
				overflow: hidden;

				&-title {
					color: #232832;
					font-size: 15px;
					line-height: 18px;
					font-weight: 500;
				}

				&-label {
					margin-top: 4px;
					color: #B9BCC3;
					font-size: 12px;
					line-height: 14px;
					font-weight: 400;
				}

				.type {
					margin-left: 10px;
				}
			}

			&__value {
				width: 40px;
				height: 40px;

				&-img {
					width: 100%;
					height: 100%;
					border-radius: 5px;
				}
			}
		}

		.cell-content {
			margin: 10px 0 0 50px;
			color: #232832;
			font-size: 15px;
			line-height: 18px;
			font-weight: 500;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
		}
	}
</style>